<?php //user instructions, commented JEXEC for modal/ajax access
// no direct access 
//defined('_JEXEC') or die('Restricted access'); 
//JHTML::stylesheet('template.css');
if(!defined('_JEXEC')){
	$css = '
		<style>
		p{
			display:block;
			font-size:12px;
		}
		ul{
			font-size:12px;
		}
		li{
			font-size:12px;
		}
		h1{
			font-size: medium;
			font-weight: bold;
			font-size:18px;
		
		}
		H2{
			font-size:14px;
			font-weight:normal;
		}
		
		H3{
			font-size:12px;
			font-weight:normal;
		}
		H4{
			font-size:10px;
			font-weight:normal;
		}
		H5{
			font-size:8px;
			font-weight:normal;
		}
		</style>';
		echo $css;
}
?>

<div style="width:600px">
	<h2><b>No Results Found</b></h2>
    <p>No results were found for you query '<?php 
	$terms = $mainframe->getUserState( "com_bookstore.query.orig_terms", '' );
	JFilterOutput::objectHTMLSafe($terms);
	if($terms['offset'] == '1'){
		foreach($terms as $key=>$value){
			if( ($key != 'offset') && ($key != 'simple') &&($key != 'instock') && (!empty($value)) ){
				//var_dump($value);
				$str .= $key.": ".$value.", ";
			}//end if 'offset or simple'
		}//end foreach
		$str = substr($str,0,-2);
		echo $str;
	}else{
		//var_dump($terms['simple']);
		echo $terms['simple'];
	}//edn if ofset is 1
	
	
	?>'.<br /><br />With millions of titles in print, finding the exact book can be diffcult sometimes; a job for the experts.  Please see a BookPeople Bookseller for a detailed search of our inventory and databases</p><br />
    <h2><strong>Ideas & Suggestions</strong></h2>
    <?php
	if($terms['offset'] != '1'){
		?><p>Try our Extended Search:  Extended Search gives you the ability to place keywords into specific data fields for more precise search results.  As well, Extended Search gives you the option to search the entiry of BookPeople's database, not just items in-stock!</p><?php
	}	?>
    <p>We're always excited to hear your ideas, suggestions and experiences.  Find a Bookseller and let us know what you think!  Additionally, Comment Cards are located directly behind the main information desk at the front of the store.
</div>